import FieldHandler from "./FieldHandler"
import JsonSeriType from "../base/JsonSeriType"
import commonConstants from "../constants/commonConstants"

export default class JSONFieldHandler extends FieldHandler{
	
	constructor(){
		super();
		super.seriType = new JsonSeriType(commonConstants.fieldHandler.JSONFieldHandler.code,commonConstants.fieldHandler.JSONFieldHandler.clsPage);
	}
	
	genSeriObj(){
		let ret={
			"fieldGroups":super.getAll()
		};
		return ret;
	}
	
	seriObj(obj){
		console.log("JSONFieldHandler seriObj(obj)", obj);
		super.init(obj);
	}
	
}